#ifndef TCPHAND_H
#define TCPHAND_H

#include "hand.h"

class ThreeCardPokerHand : public Hand
{
	public:
		ThreeCardPokerHand(CardMgr* Mgr);

		bool8 rankHand();
		int32 getRank();
		uint8 getHighCard();

		bool8 qualifies();

		void calcNthHighest(int32 n);

		int32 outrank(uint8* Buf);
		int32 outhigh(uint8* Buf);

	protected:
		uint8 getNthHighest(int32, int32);

	protected:
		uint8 counts[13];		// 2:index 0, 3:index 1 ... A:index 12
		uint8 highCard;
		int32 handRank;
};

inline int32
ThreeCardPokerHand::getRank()
{
	return handRank;
}

inline uint8
ThreeCardPokerHand::getHighCard()
{
	return highCard;
}

#endif
